home *** CD-ROM | disk | FTP | other *** search
/ Internet Tools (InfoMagic) / Internet Tools.iso / dos_win / winsock / maillist / 94-05.Z / 94-05 / 000363_support@netmanage.com_Wed May 25 04:01:58 1994.msg < prev    next >
Internet Message Format  |  1994-05-31  |  16KB

  1. Received: from relay1.UU.NET by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  2.           id AB22399; Wed, 25 May 1994 14:26:38 -0400
  3. Received: from netmanage.com (via netman-gate.netmanage.com) by relay1.UU.NET with SMTP 
  4.     (5.61/UUNET-internet-primary) id AAwrlh06211; Wed, 25 May 94 14:26:29 -0400
  5. Received: from suzannec.netmanage.com by netmanage.com (4.1/NetManage-1.0)
  6.     id AA07476; Wed, 25 May 94 11:18:14 PDT
  7. Date: Wed, 25 May 94 11:01:58 PDT
  8. From: support@netmanage.com
  9. Subject: RE:Getting SLIP to work w\Chameleon
  10. To: robinn@rpi.edu, winsock@sunsite.unc.edu, mckee@pacs.sunbelt.net
  11. X-Mailer: Chameleon - TCP/IP for Windows by NetManage, Inc.
  12. Message-Id: <Chameleon.4.00.4.940525112300.support@suzannec.netmanage.com>
  13. Mime-Version: 1.0
  14. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  15.  
  16.  
  17. Hello,
  18.  This should work if the script begins with a -n $r.
  19. This skips an expect, then sends a carriage return. You can add additional 
  20. $r's for extra carriage returns 
  21. ie:
  22.  
  23. -n $r$r
  24.  
  25. We have a detailed document on slip/ppp setup with many scripting
  26. examples below. Also, we do have a gopher server at "gopher.netmanage.com" 
  27. which is filled with helpful information for different Internet Providers for 
  28. slip/ppp dialup in the Third Party Vendors and Providers\Internet Providers 
  29. section.
  30.  
  31. Copyright 1993-4 NetManage Inc.                                              
  32.                                              rev. 0003
  33. Authors: Joseph I. Salamon     
  34.                                           
  35. Using SLIP/CSLIP/PPP with Chameleon 
  36.  
  37.  
  38. INTRODUCTION
  39.  
  40. This document introduces the user to dial-up IP protocols, SLIP/CSLIP/PPP. In 
  41. this document the user will find basic  SLIP/CSLIP/PPP information, hints for 
  42. writing a dial-up script, troubleshooting suggestions and recommendations. 
  43. This document also offers connection suggestions to an Internet Service 
  44. Provider.
  45.  
  46.  
  47. GENERAL INFORMATION
  48.  
  49.  
  50. SLIP and CSLIP are basically the same protocol, the major difference is the 
  51. header compression used by default in CSLIP packet format. The  TCP 
  52. connection is faster when compressed header is used
  53.  
  54. PPP has the ability to negotiate several parameters such as:  Header 
  55. compression and IP addressing. PPP is faster due to header compression and 
  56. bigger packets size transfers and provides enhanced security.
  57.  
  58. PPP packet size 1500 (top MTU)        MTU - Maximum Transmission Units
  59.  
  60. SLIP/CSLIP packet size1006 (top MTU)
  61.  
  62. CHAP - special packet format for negotiation of security with PPP (supported 
  63. by NetManage PPP)
  64.  
  65. NetManage PPP is in PASSIVE mode for the first   (3 sec).  If NetManage PPP 
  66. does not receive any negotiation packet within first (3 sec), it will change 
  67. to the ACTIVE mode and start sending the negotiation packets
  68.  
  69. SLIP / PPP / CSLIP are 8bit protocols (currently Chameleon only support 8bit 
  70. login)
  71.  
  72.  
  73. Dial-up Login (Internet Service Providers)
  74.  
  75. There are many companies which offer Internet connectivity, each provides a 
  76. different login procedure. To make things easier, NetManage offers dial-up 
  77. scripting capabilities. A user can write a simple script that will automate 
  78. the login procedure. Before connecting to an Internet Service Provider the 
  79. user must have access to the following information:
  80.  
  81. Type of connection (SLIP/CSLIP/PPP)
  82. Phone number
  83. UserName  and  Password 
  84. Local IP address (if not dynamically assigned)
  85. Default Gateway IP address (IP address of the provider)
  86. IP address for Domain Name Server (optional)
  87. Mail Gateway, Mail Server and POP Server IP addresses (if Mail application 
  88. will be used) (optional)
  89.  
  90. Once the above information is available, you are ready to dial out.
  91. User must add the above information to the Chameleon CUSTOM application.
  92.  
  93. When configuring the PORT settings in CUSTOM you must use:
  94. 8 Data Bits (other bit settings not supported currently)
  95. 1 Stop Bit
  96. Parity none
  97.  
  98. NOTE: UserName field, of the CUSTOM Login menu, must be filled-in in order 
  99. for the dial-up script to be executed. If you are only required to send a 
  100. PASSWORD, you must have a dummy entry in the UserName field. 
  101.  
  102. Writing Login/Connection script
  103.  
  104. The scripting language is used to negotiate the initial login to the remote 
  105. host. The remote host could be a UNIX box, a special SLIP/CSLIP/PPP router 
  106. like a NetBlazer, a Chameleon PC or a terminal server that supports the SLIP, 
  107. CSLIP or PPP protocols. 
  108.  
  109. The scripting language is simply a series of alternating "Expect" and "Send" 
  110. statements. The "Expect" statements tell the script to wait for a series of 
  111. character(s) before it "Sends" a reply. The "Send" statements send the 
  112. information in response to a prompt (the preceding "expect") from the remote 
  113. host. 
  114.  
  115. The script is kept in a file called SLIP.INI. For each SLIP,CSLIP or PPP 
  116. interface you create in Custom, an entry will be added to the SLIP.INI with 
  117. the name of the interface as a header. 
  118.  
  119. There is a special character set used for writing a connection script. Please 
  120. refer to the Chameleon manual for the script character information. 
  121.  
  122. EXAMPLE
  123.  
  124. If a user has defined both a SLIP and a PPP interface in the CUSTOM utility, 
  125. his/her SLIP.INI file will look something like this:
  126.  
  127. [DEFAULT]
  128. SCRIPT=name: $u$r word: $p$r -n $6$c$r -i
  129. TYPE=SLIP
  130.  
  131. [SLIP0]
  132. SCRIPT=name: $u$r word: $p$r -n $6$c$r -i
  133. TYPE=SLIP
  134.  
  135. [PPP0]
  136. SCRIPT=name: $u$r word: $p$r -n $6$c$r -i
  137. TYPE=PPP
  138.  
  139. Each new serial interface defined in CUSTOM will use the information under 
  140. [Default] as its initial default script. This script may need to be edited to 
  141. properly negotiate the login on a particular remote dial up host.
  142.  
  143. In order to successfully execute a dial-up script user must know the login 
  144. sequence. This means that the user must know the exact prompts, the order and 
  145. what needs to be sent at those prompts. 
  146.  
  147. EXAMPLE
  148.  
  149. If you need to send a user name at the Login prompt, the script would look 
  150. like this:
  151.  
  152. SCRIPT=Login: $u$r        
  153.  
  154. Login: - is the exact prompt to be expected (expects are case sensitive)
  155.  
  156. $u - will send the login name from the UserName field in CUSTOM
  157.  
  158. $r - will send a CR ( Carriage Return)
  159.  
  160.  
  161. If you are not familiar with the exact login procedure do the following:
  162.  
  163. Connect to your Service Provider using windows terminal
  164. Write down every Prompt, CR ( Carriage Return), and send parameter used.
  165.  
  166. EXAMPLE
  167.  
  168. Lets say that after you have connected using Windows terminal, before you can 
  169. send the UserName you need to send a Carriage Return (CR) (hit ENTER) to 
  170. "wake-up" the server. The script will look like this:
  171.  
  172. SCRIPT=-n $r Login: $u$r
  173.  
  174. -n  Skip an expect. Anything following this character will be a send. In the 
  175. above example we are sending a CR represented by the $r character. 
  176.  
  177. Lets take a look at the default script for interface [SLIP0]:
  178.  
  179. [SLIP0]
  180. SCRIPT=name: $u$r word: $p$r -n $6$c$r -i
  181. TYPE=SLIP
  182.  
  183. After the dial up is complete and the baud rate is negotiated the script 
  184. tells Chameleon to expect the characters "name:" contained in the initial 
  185. prompt from the remote host. After the prompt is received the program will 
  186. send the UserID (the $u parameter) and a Carriage Return ($r).
  187.  
  188. Next is an expect of the password prompt "word:". Even though the actual 
  189. prompt says "password:", you only need to put in the last 4 characters of any 
  190. prompt to create an "expect" string.  After the prompt is understood by the 
  191. script, the script will send the value contained in the login PASSWORD field 
  192. in Custom and a CR ($p$r).
  193.  
  194. Then the script sends a 6 second delay ($6), the command to start SLIP,CSLIP 
  195. or PPP (represented by $c which sends the value specified in the Startup 
  196. Command field of CUSTOM application LOGIN menu), after skipping an expect 
  197. with the (-n) parameter. So the script reads -n $6$c$r immediately after the 
  198. password is sent.  
  199.  
  200. The (-i) option at the end of the script, tells the system to expect an IP 
  201. address (an IP address displayed in text by the remote SLIP host). The (-i) 
  202. is not used for PPP. PPP negotiates the 
  203. addresses automatically.
  204.  
  205. SCRIPT EXAMPLE
  206.  
  207. Lets say that the remote device that the user is dialing into has 
  208. a (login:) prompt instead of the (name:), and no SLIP command. 
  209. The script will look like this:    
  210.  
  211. [SLIP0]
  212. SCRIPT=login: $u$r word: $p$r
  213. TYPE=SLIP 
  214.  
  215. A user can specify all of the send commands right in the script. 
  216.  
  217. EXAMPLE
  218.  
  219. We have a UserID: Joe and the password: Chameleon
  220.  
  221. The script will look like this:  
  222.  
  223. SCRIPT=login: Joe$r word: Chameleon$r
  224.  
  225.  
  226. NOTE:  Send strings separated by a space (two words or more) can not be send 
  227. from the script file and must be specified in the Startup Command field of 
  228. CUSTOM application.
  229.  
  230. NOTE:  If the user is sending the parameters directly in the script file, the 
  231. user MUST specify something in the USERNAME field under the CUSTOM login 
  232. menu. If the USERNAME field is blank, the script will not be sent.
  233.  
  234.  
  235. PROMPTING USERS for INFORMATION
  236.  
  237. You can also have the script prompt the user for UserName, password, etc.., 
  238. rather than having the script send them automatically. Inserting the $f 
  239. parameter into the script will bring up a dialog box that will allow you to 
  240. type the value in manually.
  241.  
  242.  
  243. EXAMPLE
  244.  
  245.  
  246. SCRIPT=login: $fEnter_Login$r
  247.  
  248. This script will prompt the user with a dialog box in Windows where the login 
  249. name can be entered. The text "Enter_Login" specifies the name of the dialog 
  250. box that will come up when the script encounters the $f parameter. 
  251.  
  252. In the script, after the login prompt is received the dialog box named 
  253. "Enter_Login" will pop-up on the screen. The user will type in the user name 
  254. and hit the OK button.
  255.  
  256. Expecting an IP Address in SLIP/CSLIP (PPP negotiate IP addressing)
  257.  
  258. In some cases the remote server will returning a message like:
  259.  
  260. My IP address is xxx.xxx.xxx.xxx Your IP address is xxx.xxx.xxx.xxx
  261.  
  262. If you are using the " -i " option and expecting an IP address to be assigned 
  263. by the server, using the " -i " by it self will not work. The IP address 
  264. captured by the " -i " option will be first IP address found on this line, 
  265. which is the IP address of the server. In this case the user must put an 
  266. expect on the first IP address and use the "  $-  " option to skip all data 
  267. until the next IP address is located.
  268.  
  269. EXAMPLE
  270.  
  271. The system returns the following message:
  272.  
  273. My IP address is 157.27.1.1 Your IP address is 157.27.1.19
  274. Using the above example, the script might look something like this:
  275.  
  276. SCRIPT=name: $u$r word: $p$r -n $6$c$r Your $- -i
  277.  
  278. In the above example we are using "Your" to set the first expect, then the " 
  279. $- " option used to skip to the next expect (in the above example it is 
  280. represented by the " -i " character). " -i " will find the next IP address.
  281.  
  282.  
  283. SLIP/CSLIP/PPP ROUTING AND CONFIGURATION
  284.  
  285. When setting up a SLIP connection, verify that the local PC and the remote 
  286. device that user is dialing into (remote SLIP host) are on the same sub-net.
  287.  
  288. EXAMPLE
  289.  
  290. If the IP address of the remote SLIP host is 156.27.50.1   and the sub-net 
  291. mask is - 255.255.255.0 (a class B address subnetted 8 bits) then the local 
  292. PC's (HOST) IP address can be 156.27.50.2 with the 
  293. same sub-net mask.
  294.  
  295. Looking at the above example, you can see that local PC and the remote server 
  296. are located on the same sub-net.
  297.  
  298. If the remote SLIP host is a Chameleon PC with multiple interfaces (slip/ppp 
  299. and ethernet), then you must make sure that the SLIP/PPP and Ethernet 
  300. interfaces are configured on separate subnets.
  301.  
  302. EXAMPLE
  303.  
  304.  
  305. Lets take a look at the following set-up:
  306.  
  307.  
  308.                       SLIP/CSLIP/PPP Network                                 
  309.     Ethernet network
  310.        
  311. (A)============================(B)(C)----------------------------------------
  312. --------(D)
  313.   Local Host                                          Chameleon PC w/modem   
  314.                                   Remote Host
  315.                                                               and Ethernet 
  316. card (Server)
  317.                                                               
  318.  
  319. In order to understand the addressing better, lets assign the IP address to 
  320. each of the devices on the sample network
  321.  
  322.  
  323. (A) -- Local Host - 156.27.50.2  Sub-net mask - 255.255.255.0
  324.  
  325. (B) -- SLIP/PPP interface on the Server: 156.27.50.1    (Chameleon PC with 
  326. two interfaces defined)
  327.           Sub-net mask: 255.255.255.0
  328.  
  329. (C) -- Ethernet interface on the Server :  156.27.10.1    (Chameleon PC with 
  330. two interfaces defined)
  331.           Sub-net mask: 255.255.255.0
  332.  
  333. (D) -- Remote Host on the Ethernet network :  156.27.10.2   
  334.           Sub-net mask: 255.255.255.0
  335.  
  336. In order to establish communication from device (A) to device (D)
  337. Device (A) must have device (B) specified as its default gateway 
  338. and device (D) must know how to route back to the SLIP/CSLIP/PPP network via 
  339. device (C).
  340.  
  341. After addressing issues are resolved, verify the SLIP/PPP port settings in 
  342. the CUSTOM application (assuming that the user has defined SLIP, CSLIP or PPP 
  343. interface already).
  344.  
  345.  
  346.  
  347. Regards,
  348.            /\ 
  349. **********/@@\ ****************************************
  350.           \__/      NetManage Inc.
  351.        W   AA   W   Home of Chameleon TCPIP for Windows
  352.        |__AYA__/    
  353.          AXXV          Suzanne Calkins
  354.          VXXV          Technical Support Representative
  355.       W  VUV   W       (408)973-7171
  356.       |_/ V \_/ __     (408)973-8272 fax
  357.            \   [_ \    email: support@netmanage.com
  358.             \_____/    MIME enclosures are OK 
  359.  
  360.                  gopher server: gopher.netmanage.com
  361. ******************************************************
  362.  
  363.  
  364.  
  365.  
  366. ---------------Original Message---------------
  367. Return-Path: <winsock@SunSITE.Unc.EDU>
  368. Received: from SunSITE.Unc.EDU (calypso-2.oit.unc.edu) by 
  369. mail.netmanage.com (5.0/SMI-SVR4)
  370.     id AA05640; Tue, 24 May 1994 19:46:54 +0800
  371. Received: from  (localhost.oit.unc.edu) by SunSITE.Unc.EDU 
  372. (5.65c+IDA/FvK-1.07) with SMTP
  373.           id AA05767; Tue, 24 May 1994 22:25:39 -0400
  374. Errors-To: towfiq@sunsite.unc.edu
  375. Date: Tue, 24 May 1994 22:25:39 -0400
  376. Message-Id: <1994May24.220935.978@pacs.sunbelt.net>
  377. Errors-To: towfiq@sunsite.unc.edu
  378. Reply-To: mckee@pacs.sunbelt.net
  379. Originator: winsock@sunsite.unc.edu
  380. Sender: winsock@sunsite.unc.edu
  381. Precedence: bulk
  382. From: mckee@pacs.sunbelt.net
  383. To: Multiple recipients of list <winsock@sunsite.unc.edu>
  384. Subject: Re: anyone get SLIP to work with Chameleon??
  385. X-Listprocessor-Version: 6.0a -- ListProcessor by Anastasios Kotsikonas
  386. Content-Type: text
  387. Content-Length: 952
  388.  
  389. In article <2rb73i$6o6@usenet.rpi.edu>, robinn@rpi.edu writes:
  390.  
  391.  
  392. > I've been having the same problem.  My SLIP server doesn't print any 
  393. > characters until a couple of carraige returns "wake it up."  Then I start 
  394. > getting prompts.  As far as I can tell, you can't do this with Chameleon.
  395.  
  396.  
  397.  
  398. > The difference is, this server obviously asks you for a "Username:" as 
  399. soon 
  400. > as you connect.  The original poster and I share a problem in that our 
  401. > servers wait for a carraige return.  Chameleon seems to get stuck if the 
  402. > first command is a "skip."  (-n).
  403. > If anyone has gotten something like this to work, please send me an 
  404. e-mail 
  405. > message.  After this week I will no longer have an ethernet connection, 
  406. and 
  407. > unless I get a SLIP connection working, I won't be able to read news very 
  408. > easily.
  409. > Thanks
  410. > Nate Robinson
  411. > robinn@rpi.edu
  412.  
  413. Key on the CONNECT message from the modem, wait 4 seconds, then send data.
  414.  
  415. tim mckee
  416.  
  417.  
  418. ----------End of Original Message----------
  419.  
  420.  
  421.  
  422.  
  423. ----------End of Original Message----------
  424.